package com.example.carrierapp.ui.main.dispatch.no;

import com.example.carrierapp.base.BaseView;
import com.example.carrierapp.bean.RowsBean;
import com.example.carrierapp.bean.dispatch.DispatchListBean;
import com.example.carrierapp.viewmodel.itemmodel.ItemDispatchModel;

public interface DispatchNoContract {
    interface Presenter {

        void getDispatchList(String filter, int page);

        void sureDelivery(int id);

        void setTop(int id);

        void cancelTop(int id);
    }

    interface View extends BaseView {
        void getDispatchListSuccess(RowsBean<ItemDispatchModel> rows);

        void onTopSuccess(boolean isTop);

        void getDispatchListFailde(String msg);

        void sureDeliverySuccess(String msg);

        void sureDeliveryFailde(String msg);

    }
}
